package com.chixing.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chixing.entity.CouponAll;
import com.chixing.entity.CustomerCoupon;
import com.chixing.mapper.CouponAllMapper;
import com.chixing.service.ICouponAllService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shy
 * @since 2022-10-20
 */
@Service
public class CouponAllServiceImpl extends ServiceImpl<CouponAllMapper, CouponAll> implements ICouponAllService {
    @Autowired
    private CouponAllMapper couponAllMapper;

    @Override
    public CouponAll getCouponByCouponNo(Integer couponNo) {

        return couponAllMapper.selectById(couponNo);
    }
}
